<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script>
function checkinput(){
if(document.forms.admin.users_user.value == "")
	{
		alert("กรุณากรอกชื่อด้วยน่ะค่ะ");		//alert with appropriate message
		document.forms.admin.users_user.select();	//place cursor on the input box
		return false;
	}
	if(document.forms.admin.users_pass.value == "")
	{
		alert("กรุณากรอก\nรหัสผ่านด้วยนะครับ");		//alert with appropriate message
		document.forms.admin.users_pass.select();	//place cursor on the input box
		return false;
	}
}

</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form action="check_admin.php" method="post" enctype="multipart/form-data" name="admin" onSubmit="return checkinput();">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="500" border="0" align="center" cellpadding="5" cellspacing="2" bordercolor="#FFFFFF" bgcolor="#6699CC">
    <tr>
      <td colspan="2" bgcolor="#003399"><div align="center"><font color="#FFFFFF" face="tahoma, ms Sans Serif"><b>ระบบล็อกอิน</b></font></div></td>
    </tr>
    <tr>
      <td width="123" bgcolor="#6699CC"><div align="right"><b>username : </b></div></td>
      <td width="357" bgcolor="#6699CC"><label>
        <input name="users_user" type="text" id="users_user" size="30">
      </label></td>
    </tr>
    <tr>
      <td bgcolor="#6699CC"><div align="right"><b>password : </b></div></td>
      <td bgcolor="#6699CC"><label>
      <input name="users_pass" type="password" id="users_pass" size="30">
      </label></td>
    </tr>
    <tr>
      <td bgcolor="#6699CC">&nbsp;</td>
      <td bgcolor="#6699CC"><label>
        <input type="submit" name="Submit" value="login">
      </label></td>
    </tr>
  </table>
</form>
</body>
</html>
